<extend name="Index/index" />
<block name="center">
<div class="panel panel-blue">
    <div class="panel-heading">添加链接</div>
	    <div class="panel-body pan">
	        	<form action="{:U('Admin/Friendlinks/insert')}" class="form-horizontal" method="post" enctype="multipart/form-data">
	            	<div class="form-actions top">
	                	
	            	</div>
	            	<div class="form-body pal">
		                <div class="form-group">
		                    <label for="inputAddress" class="col-md-3 control-label">链接名称 <span class="require">*</span>
		                    </label>
		                    <div class="col-md-9">                          
                                <div style="float:left"><input type="text" name="title" class="form-control" placeholder="链接名称" / style="width:300px"></div>
		                    </div>
	                	</div>
	               	<div class="form-group">
		                    <label for="inputAddress" class="col-md-3 control-label">链接地址 <span class="require">*</span>
		                    </label>
		                    <div class="col-md-9">                          
                                <div style="float:left"><input type="text" name="url" class="form-control" placeholder="链接地址" / style="width:300px"></div>
		                    </div>
	                	</div>
                    <div class="form-group">
		                    <label for="inputAddress" class="col-md-3 control-label">链接图片 <span class="require">*</span>
		                    </label>
		                    <div class="col-md-9">                          
                                <div style="float:left"><input type="file" name="friendpic" value="上传" class="uniform-file" class="form-control"/></div>
		                    </div>
	                	</div>
	                <div class="form-group">
		                    <label for="inputAddress" class="col-md-3 control-label">链接描述 <span class="require">*</span>
		                    </label>
		                    <div class="col-md-9">
                                <div class="input-icon right" ><i class="fa fa-location-arrow"></i>
                                <textarea name="describe" id="" cols="41" rows="5"></textarea>	
                            </div>
	            	</div>

	            	<div class="form-actions">
	                	<div class="col-md-offset-3 col-md-9">
                            <input type="hidden" name="id" value="{$info['0']['id']}">
		                    <button type="submit" class="btn btn-primary">添加</button>&nbsp;
		                    <button type="reset" class="btn btn-green">重置</button>
	                	</div>
	            	</div>
	        	</form>
	   	 	</div>
		</div>
</block>
